Table({
	id:"table-list",
	url:"/role/page",
	type:"client",
	search:true,
	data:[
           {field: 'selectItem', radio: true},
           {title: 'id', field: 'id'},
           {title: '角色名称', field: 'role'},
           {title: '角色中文名', field: 'description'},
           {title: '具体描述', field: 'memo'},
           {title: '编辑', field: '',formatter:function(value,rows,index){
        	    
        	   var str ='<button class="layui-btn layui-btn-small layui-btn-warm edit-btn " data-url="role/role-edit" data-id="'+rows.id+'" >'
				str+='<i class="layui-icon ">&#xe642;</i>'
				str+='</button>'
				if(rows.role!='admin'){
					str+='<button class="layui-btn layui-btn-small layui-btn-danger del-btn" data-url="role/delete" data-id="'+rows.id+'" >'
					str+= '<i class="layui-icon ">&#xe640;</i>'
						str+= '</button>';
				}	
        	   return str;
           }},
          ],
});
